@charset "UTF-8";

/* 尽可能少的设置样式, less is more */

* {
    margin: 0;
    padding: 0;
}

body {
    width: 100%;
    height: 100%;
    background-color: #222;
}

.meta {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: stretch;
    color: #84c754;
    z-index: -11;
}

.text {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: stretch;
    color: #fff;
    z-index: 12;
}

h1 {
    position: relative;
    align-self: center;
    /* text-transform: uppercase; */
    color: #333333;
    /* 1rem=16px */
    font-size: 100px;
}

h1::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    /* 文字透明色 */
    color: transparent;
    background-image: linear-gradient(to right,
    #c23616,#192a56,#00d2d3,yellow,
    #6d214f,#2e86de,#4cd137,#e84118);
    /* 背景绘制区域 当值为text 的时候 代表设置了文字的镂空效果 
    但是前提必须是文字颜色为透明色 */
    background-clip: text;
    /* 谷歌浏览器的私有属性 */
    -webkit-background-clip: text;
    /* 利用裁切来创建元素的可显示区域 circle表示创建了圆形 
    100px表示圆形的直径,0%和50%表示圆形的圆心 
    圆形的直径和圆形的圆心利用at关键字隔开 */
    clip-path: circle(50px at 0% 50%);
    /* 动画  名称 时长 infinite 表示无限次播放 */
    animation: spotlight 5s infinite;
}

.meta h1::after {
    content: 'Meta';
}
.text h1::after {
    content: 'Text';
}

/* 下面设置圆形移动效果 */
@keyframes spotlight{
    0%{
        clip-path: circle(50px at 0% 50%);
    }
    50%{
        clip-path: circle(50px at 100% 50%);
    }
    100%{
        clip-path: circle(50px at 0% 50%);
    }
}

h2 {
    text-align: center;
    color: #45b823;
    padding: 20px 0 0 20px;
    background-color: #fff;
    font-size: 40px;
    font-weight: bold;
    /* 火焰字效果 */
    text-shadow: 0 0 4px white,
        0 -5px 4px #ff3,
        2px -10px 6px #fd3,
        -2px -15px 11px #f80,
        2px -25px 18px #f20;
}

h3 {
    text-align: center;
}

ul {
    z-index: inherit;
    padding: 30px;
    box-shadow: 0 15px 40px rgba(0,0,0,1);
    /* list-style-type: none; */
}
ul li {
    position: relative;
    /* list-style: none; */
    /* font-size: 20px; */
    padding: 5px;
    z-index: inherit;
    /* color: #ffffff; */
    /* font-family: monospace; */
    cursor: pointer;
    /* box-sizing: border-box; */
}
ul li:hover {
    color: #111;
}
ul li::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #3fff00;
    z-index: -1;
    transform: scaleY(0);
    transition: transform 0.5s;
    transform-origin: bottom;
}
ul li:hover::before {
    transform: scaleY(1);
    transition: transform 0.5s;
    transform-origin: top;
}


.img {
    text-align: center;
    border: green 1px;
}
img {
    margin: 0 auto;
}


#particles-js{
    width: 100%;
    height: 100%;
    position: fixed;
    z-index: 10;
}

#top {
    position: sticky;
    top: -374px;
    margin-top:-174px;
    float:right;
    width:150px;
    height:174px;
    background:url("top.png") no-repeat;
    background-position:-600px 0;
    z-index:999;
    transform:translateY(calc(100vh + 200px))
}

/* 回到顶部 */
#top:hover {
    animation: back .5s steps(5) infinite
}
@keyframes back {
    from {background-position:0 0}to{background-position:-750px 0}
}